package com.example.mrzhou.srtfoodapplication;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;

/**
 * Created by SRTfood on 2017/1/17.
 */

public class BaseActivity extends Activity {

    //将BaseActivity作为所有活动的父类

    @Override
    protected void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        ActivityCollector.addActivity(this);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
    }

    @Override
    protected void onDestroy(){
        super.onDestroy();
        ActivityCollector.removeActivity(this);
    }
}
